const express =require('express') 
const app =express()  
const passgetRouter = require("./router/抽取的路由")
const passpostRouter =require("./router/抽取的路由2")

//设置以public为根的路径，去查找东西。
app.use(express.static("view"))

app.use(passgetRouter)   //注册到app下
app.use(passpostRouter)   //注册到app下

app.listen(3000,()=>{
    console.log('3000端口已启动！！！');
})